﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CardInfoList.aspx.cs" Inherits="LGSVR_WEB.terminal.CardInfoList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>终端号码列表</title>
    <link href="/skins/default/css/web.css" rel="stylesheet" type="text/css" />
    <script src="/skins/default/js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/skins/default/js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="ClientMsg">
        <%=MsgContent %></div>

    <div id="MainBody">
     <div class="ListSearch">
            卡编号:
            <asp:TextBox ID="txtcardID" runat="server"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button3" CssClass="btn" runat="server" OnCommand="Search" Text="搜索" />
        </div>
      <div class="buttons">
            <ul>
                <li class="positive"><a href='CardInfoEidt.aspx'>
                    <img src="../icon/buttons/apply2.png" alt="" style="vertical-align: middle" />添加终端</a></li>
                <li class="negative">
                    <asp:LinkButton ID="lbtnUnable" runat="server" OnClick="lbtnUnable_Click">
                            <img src="../icon/buttons/delete.png" alt="" />停用</asp:LinkButton></li>
                <li class="negative">
                    <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click">
                            <img src="../icon/buttons/cross.png" alt="" />彻底删除</asp:LinkButton></li>
               </ul>
        </div>
  
        <div class="clear">
        </div>
        <table class="listtb" cellpadding="1" cellspacing="1" id="ListInfo">
            <tr class="header">
              <td style="width: 30px">
                    <input type="checkbox" name="checkBoxAll" id="checkBoxAll" value="<%#Eval(ID) %>"  />
                </td>
                <td style="width: 100px;" class="first">
                    卡编号
                </td>
                <td style="width: 150px;" class="first">
                    组编号
                </td>
                <td>
                    电话
                </td>
                <td>
                    安装地址
                </td>
                <td>
                    卡类型
                </td>
               
                <td>
                    状态
                </td>
                <td style="width: 120px">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="rptBody" runat="server">
                <ItemTemplate>
                    <tr onmousemove="this.className='tdOver'" onmouseout="this.className = ''">
                        <td style="width: 3%; padding-left: 10px">
                            <input type="checkbox" id="chkId" name="chkId" value='<%#Eval("ID")%>' style="border:0px" />
                        </td>
                        <td>
                            <%#Eval("cardID")%>
                        </td>
                        <td>
                            <%#Eval("groupID")%>
                        </td>
                        <td>
                            <%#Eval("cardPhone")%>
                        </td>
                        <td>
                            <%#Eval("address")%>
                        </td>
                        <td>
                            <%#Eval("cardType")%>
                        </td>                      
                        <td>
                            <%#Convert.ToBoolean(Eval("state"))?"正常":"<span style='color:red'>停用</span>"%>
                        </td>
                        <td class="op">
                         
                            <a href="javascript:void(0)" title="编辑" onclick="location.href='CardInfoEidt.aspx?action=edit&id=<%#Eval("id") %>'">
                                <img alt="编辑" src="/skins/default/images/edit.png" />
                            </a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <div style="clear: both;">
        </div>
        <!--分页:BEGIN-->
        <%=SplitHtmlCode%>
        <!--分页:END-->
    </div>
    </form>
</body>
</html>
